﻿
using Bankeren.Engine;
using Caliburn.Micro;
namespace BankerenClient
{
    public class ChatEntryViewModel : PropertyChangedBase
    {
        #region Fields

        private PlayerInfo info;
        private string message;

        #endregion

        #region Properties

        public PlayerInfo Info
        {
            get { return this.info; }
            set
            {
                this.info = value;
                NotifyOfPropertyChange(() => Info);
            }
        }

        public string Message
        {
            get { return this.message; }
            set
            {
                this.message = value;
                NotifyOfPropertyChange(() => Message);
            }
        }

        #endregion

        #region Ctor

        public ChatEntryViewModel()
        {
            this.info = new PlayerInfo("Player", "#FFFFFF", new Avatar("chicken"));
            this.message = "Testmessage";
        }

        public ChatEntryViewModel(PlayerInfo info, string message)
        {
            this.info = info;
            this.message = message;
        }

        #endregion
    }
}
